const path = require("path")
let user = 'user/abb'
let file = 'txt.txt'
let filePath = path.resolve(user, file)
console.log(filePath);


console.log(path.dirname(filePath));
console.log(path.basename(filePath));
console.log(path.extname(filePath));
let filePath2 = path.join(user, file)
console.log(filePath2);